package com.boot.scripts;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class ScriptPreLoader implements ApplicationRunner {

    @Autowired
    private LuaScriptLoader luaScriptLoader;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        luaScriptLoader.startServer();
//        luaScriptLoader.deductStock("temp", "temp", "testUser", 1);
    }
}
